package com.acme.chat.message;

import java.io.Serializable;

/**
 * Abstract class represents message
 */
public class AbstractMessage implements Message, Serializable {
    protected MessageType type;
    protected String message;
    protected String nameToWho;
    protected String room;

    @Override
    public MessageType getType() {
        return type;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getNameToWho(){
    	return nameToWho;
    }

    @Override
    public String getRoom(){
    	return room;
    }
}
